﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using OL.FrameCore.Domain.Entity;

namespace OL.FrameCore.Repository.EF
{
    public class DataContext : DbContext
    {
        public DataContext(DbContextOptions options)
             : base(options)
        {

        }



        public DbSet<SysUser> User { get; set; }
        public DbSet<SysDept> Dept { get; set; }
        public DbSet<SysRole> Role { get; set; }
        public DbSet<SysModule> Module { get; set; }


        public DbSet<SysRoleModuleMap> RoleModuleMap { get; set; }
        public DbSet<SysUserRoleMap> UserRoleMap { get; set; }
        public DbSet<SysUserModuleMap> UserModuleMap { get; set; }

        public DbSet<SysUserOperateLog> UserOperateLog { get; set; }
        public DbSet<SysUserLoginLog> UserLoginLog { get; set; }
        public DbSet<SysErrorLog> ErrorLog { get; set; }
        public DbSet<AppArticle> Article { get; set; }
    }
}
